import random

def rand7():
    #返回一个1-7之间的可能整数
    return random.randint(1,7)
#该方法不对，求出来不是等概率分布的
def ran10():
    return int(1+(rand7()-1)*(9/6))
    pass


def rand10():

    while True:
        ran = (rand7() - 1) * 7 + rand7()
        if ran>=1 and ran<=10:
            return ran
    
print(ran10())